/********************************************************************
* Copyright (c) 2013,TGS,All rights reserved.
* fileName:	MapToolPan.h	
* created:	2013/04/26 16:45

* version:	1.6
* detail: 
*********************************************************************/

#include "MapTool.h"


class MapCanvas;

namespace TGS{
namespace MapControl{



/** \ingroup gui
 * A map tool for panning the map.
 */
class  MapToolPan : public MapTool
{
  public:
    //! constructor
    MapToolPan( MapCanvas* canvas );

	virtual void canvasPressEvent( QMouseEvent * e );

    //! Overridden mouse move event
    virtual void canvasMoveEvent( QMouseEvent * e );

    //! Overridden mouse release event
    virtual void canvasReleaseEvent( QMouseEvent * e );

    virtual bool isTransient() { return true; }

  private:

    //! Flag to indicate a map canvas drag operation is taking place
    bool _dragging;

};


}//MapControl
}//TGS